import QtQuick 2.12
import QtQuick.Controls 2.14
import QtGraphicalEffects 1.14
ItemDelegate {
    width: control.width
    height: popupSignalItemHeight
    leftPadding: comboLeftPadding
    background: Rectangle {
        color: control.highlightedIndex === index ? highlightColor : comboBgColor
    }

    // 每个代理选项样式
    contentItem: Text {
        text: modelData
        color: control.highlightedIndex === index ? highlightedFontColor : popUpFontColor
        font.pixelSize: config.fontsize
        elide: Text.ElideRight
        verticalAlignment: Text.AlignVCenter
    }

    highlighted: control.highlightedIndex === index
}
